<?php
class Google {

	public static function oAuthOptions(){
		$options = array(
			'requestScheme' => Zend_Oauth::REQUEST_SCHEME_HEADER,
			'version' => '1.0',
			'consumerKey' => GOOG_THREE_LEGGED_CONSUMER_KEY,
			'callbackUrl' => GOOG_OAUTH_REDIRECT_URI,
			'requestTokenUrl' => 'https://www.google.com/accounts/OAuthGetRequestToken',
			'userAuthorizationUrl' => 'https://www.google.com/accounts/OAuthAuthorizeToken',
			'accessTokenUrl' => 'https://www.google.com/accounts/OAuthGetAccessToken'
		);

		$options['signatureMethod'] = 'HMAC-SHA1';
		$options['consumerSecret'] = GOOG_THREE_LEGGED_CONSUMER_SECRET_HMAC;

		return $options;
	}
	
	public static $scopes = array(
		'https://mail.google.com/', // gmail
		'https://www.google.com/m8/feeds', // contacts
		'https://www.googleapis.com/auth/calendar' // calendar
	);
	
}
?>